systemctl stop firewalld
systemctl disable firewalld.service 
#安装IPtables防火墙 
yum install -y iptables-services
systemctl restart iptables.service 
#添加iptables开机自启项 
systemctl enable iptables.service

# vi /etc/selinux/config 
#注释掉下面两行 
#SELINUX=enforcing 
#SELINUXTYPE=targeted 
#增加一行 
# SELINUX=disabled

setenforce 0 